//
//  UserInfo.swift
//  ShopIOS
//商城用户信息
//  Created by Apple on 2019/7/18.
//  Copyright © 2019 Apple. All rights reserved.
//

import Foundation
import SwiftyJSON

struct UserInfoResult {
    var Success: String?
    var WaitingForComments: String?
    var WaitingForRecieve: String?
    var CellPhone: String?
    var WaitingForPay: String?
    var Photo: String?
    var MyGroup: Int = 0
    var FavoriteShop: Int = 0
    var Counpon: String?
    var RefundOrders: Int = 0
    var UserName: String?
    var AllOrders: String?
    var UserId: String?
    var Integral: String?
    var GroupTotal: Int = 0
    var HistoryVisitCount: Int = 0
    var Nick: String?
    var FavoriteProduct: String?
    var WaitingForDelivery: Int = 0
    
    init(json: JSON) {
        Success = json["Success"].stringValue
        WaitingForComments = json["WaitingForComments"].stringValue
        WaitingForRecieve = json["WaitingForRecieve"].stringValue
        CellPhone = json["CellPhone"].stringValue
        WaitingForPay = json["WaitingForPay"].stringValue
        Photo = json["Photo"].stringValue
        MyGroup = json["MyGroup"].intValue
        FavoriteShop = json["FavoriteShop"].intValue
        Counpon = json["Counpon"].stringValue
        RefundOrders = json["RefundOrders"].intValue
        UserName = json["UserName"].stringValue
        AllOrders = json["AllOrders"].stringValue
        UserId = json["UserId"].stringValue
        Integral = json["Integral"].stringValue
        GroupTotal = json["GroupTotal"].intValue
        HistoryVisitCount = json["HistoryVisitCount"].intValue
        Nick = json["Nick"].stringValue
        FavoriteProduct = json["FavoriteProduct"].stringValue
        WaitingForDelivery = json["WaitingForDelivery"].intValue
    }
}

